package com.lz.code.zkcurator;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.Arrays;
import java.util.Objects;

/**
 * @author liuzhi
 * @description
 * @date 2022/3/6 13:30
 */
@SpringBootApplication
public class ZkCutarotApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(ZkCutarotApplication.class, args);
        String[] beanDefinitionNames = applicationContext.getBeanDefinitionNames();
        Arrays.stream(beanDefinitionNames).filter(Objects::nonNull).sorted().forEach(System.out::println);
    }

}
